package com.andy.war.script;

import com.andy.war.obj.Position;
import com.andy.war.obj.battle.Army;
import com.andy.war.obj.battle.BattleContext;
import com.andy.war.util.Log;

public class MoveCmd extends ChainCmd{

	private Position to;
	
	public MoveCmd(Position to) {
		this.to = to;
	}
	
	@Override
	public void doMyCmd(BattleContext context,Army target) {
		target.setPosition(to);
		Log.p(target.getRole().getName() +" move to "+ to);
	}

	
}
